<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
    <table border="1">
        <tr>
            <th>姓名:</th>
            <td>{{person.name}}</td>
        </tr>
        <tr>
            <th>图片:</th>
            <td><img :src="person.url" alt=""></td>
        </tr>
        <tr>
            <th>年龄:</th>
            <td>{{person.age}}</td>
        </tr>
        <tr>
            <th>工作:</th>
            <td>{{person.job}}</td>
        </tr>
        <tr>
            <th>朋友:</th>
            <td>
                <ul>
                    <li v-for="friend in person.friends">{{friend}}</li>
                </ul>
            </td>
        </tr>
        <tr>
            <td>
                <input type="button" value="提交数据" @click="f()">
            </td>
        </tr>
    </table>
</div>
<!--引入Vue-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>
    let v = new Vue({
        el:"table",
        data:{
            person:{}
        },
        methods:{
           f:function () {
               v.person = {
                   name:"妹妹",
                   url:"e.jpg",
                   age:18,
                   job:"模特",
                   friends:["马化腾","黎明","赵本山"]
               }
           }
        }
    })
</script>
</body>
</html>